package com.xiong.miaosha.exception;

import com.xiong.miaosha.result.CodeMsg;

/**
 * @author wardseptember
 * @create 2020-03-17 17:22
 */
public class GlobalException extends RuntimeException{

    private static final long serialVersionUID = -1258987224309730738L;

    private CodeMsg cm;

    public GlobalException(CodeMsg cm) {
        super(cm.toString());
        this.cm = cm;
    }

    public CodeMsg getCm() {
        return cm;
    }

    public void setCm(CodeMsg cm) {
        this.cm = cm;
    }
}
